package com.wechatpay.spring.boot.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author liuyi <liuy@pvc123.com>
 * @since 2021/7/13
 */
@ConfigurationProperties(prefix = MondaWechatPayProperties.WXPAY_PREFIX)
public class MondaWechatPayProperties {

    static final String WXPAY_PREFIX = "monda.wxpay.v3";

    /** 应用id，可以是公众号id，小程序id，app应用id等 */
    private String appId;
    /** 商户ID，微信支付后台查看 */
    private String merchantId;
    /** API密钥，微信支付后台查看 */
    private String key;
    /** API3密钥，微信支付后台查看 */
    private String apiV3Key;
    /** 商户API证书的证书序列号 */
    private String merchantSerialNumber;
    /** 商户API证书文件路径 */
    private String certFilePath;
    /** 支付成功的回调地址 */
    private String notifyOrderCallbackUrl;
    /** 退款的回调地址 */
    private String notifyRefundCallbackUrl;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getApiV3Key() {
        return apiV3Key;
    }

    public void setApiV3Key(String apiV3Key) {
        this.apiV3Key = apiV3Key;
    }

    public String getMerchantSerialNumber() {
        return merchantSerialNumber;
    }

    public void setMerchantSerialNumber(String merchantSerialNumber) {
        this.merchantSerialNumber = merchantSerialNumber;
    }

    public String getCertFilePath() {
        return certFilePath;
    }

    public void setCertFilePath(String certFilePath) {
        this.certFilePath = certFilePath;
    }

    public String getNotifyOrderCallbackUrl() {
        return notifyOrderCallbackUrl;
    }

    public void setNotifyOrderCallbackUrl(String notifyOrderCallbackUrl) {
        this.notifyOrderCallbackUrl = notifyOrderCallbackUrl;
    }

    public String getNotifyRefundCallbackUrl() {
        return notifyRefundCallbackUrl;
    }

    public void setNotifyRefundCallbackUrl(String notifyRefundCallbackUrl) {
        this.notifyRefundCallbackUrl = notifyRefundCallbackUrl;
    }
}
